﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dream
{
    class TaskNpc : NPC
    {
        private string taskinfo;
        public string TaskInfo { get => taskinfo; set => taskinfo = value; }

     

        public TaskNpc(string name,NPCType type,string taskinfo):base(name,type)
        {
            this.taskinfo = taskinfo;
        }


        public override void Speak()
        {
            Console.WriteLine("希望你能帮到我，NPC:{0},任务:{1}",this.Name,this.TaskInfo);
        }
        public override void Speak1() 
        {
            Console.WriteLine("NPC:{0},任务：{1}",this.Name,this.TaskInfo);
        }

        public override void Speak2()
        {
            Console.WriteLine("NPC:{0},任务：我需要你去采集{1}",this.Name,this.TaskInfo);
        }
    }
}
